package wangjg.security.resource.factory.xml2.entity;

import java.io.Serializable;
import java.util.LinkedHashSet;
import java.util.Set;

import wangjg.security.http.HttpResource;

public class Resource implements HttpResource, Serializable {
	private static final long serialVersionUID = 1L;

	private String pattern;

	private Set<String> authorities = new LinkedHashSet<String>();

	public Resource() {
	}

	@Override
	public Set<String> getAuthorities() {
		return authorities;
	}

	@Override
	public String getPattern() {
		return pattern;
	}

	public void setPattern(String pattern) {
		this.pattern = pattern;
	}

	public void setAuthorities(Set<String> authorities) {
		this.authorities = authorities;
	}

}